import Vue from 'vue';
import App from './App.vue';
import router from './router/index';
import store from './store/index';
import axios from './utils/apiUtils';
import d2Admin from './utils/permission'
// import Constans from '@/constans'
import 'ant-design-vue/dist/antd.less'
// import 'ant-design-vue/dist/antd.css';
import './style/style.css';
// import 'ant-design-vue/dist/antd.less'; // 引入官方提供的 less 样式入口文件
// import './assets/less/common.less'; // 用于覆盖上面定义的变量
// import echarts from './utils/echarts'

// 引入 按需组件的统一引入文件
// import "./core/lazy_use";

Vue.use(d2Admin, {
  store
})
// Vue.use(Constans) 
// import antDesign from 'ant-design-vue';
// Vue.use (antDesign);
import {
  Input,
  Button,
  Select,
  Card,
  Form,
  Row,
  Col,
  Modal,
  Table,
  Pagination,
  Icon,
  Layout,
  Menu,
  // LocaleProvider,
  Tag,
  Avatar,
  Drawer,
  Dropdown,
  Breadcrumb,
  Message,
  Radio,
  Tabs,
  Tree,
  Tooltip,
  Spin,
  Popover,
  Divider,
  DatePicker,
  Badge,
  Progress,
  Steps,
  ConfigProvider,
  Upload,
  Checkbox,
  Cascader,
  InputNumber
} from 'ant-design-vue'
Vue.use(InputNumber)
Vue.use(Checkbox)
Vue.use(Cascader)

Vue.use(Input)
Vue.use(Button)
Vue.use(Select)
Vue.use(Card)
Vue.use(Form)
Vue.use(Row)
Vue.use(Col)
Vue.use(Modal)
Vue.use(Table)
Vue.use(Pagination)
Vue.use(Icon)
Vue.use(Layout)
Vue.use(Menu)
// Vue.use(LocaleProvider)
Vue.use(Tag)
Vue.use(Avatar)
Vue.use(Drawer)
Vue.use(Dropdown)
Vue.use(Breadcrumb)
Vue.use(Message)
Vue.use(Radio)
Vue.use(Tabs)
Vue.use(Tree)
Vue.use(Tooltip)
Vue.use(Spin)
Vue.use(Popover)
Vue.use(Divider)
Vue.use(DatePicker)
Vue.use(Badge)
Vue.use(Progress)
Vue.use(Steps)
Vue.use(ConfigProvider)
Vue.use(Upload)

// Vue.prototype.$Wangeditor = Wangeditor; 
Vue.prototype.$store = store;
Vue.prototype.$axios = axios;
Vue.prototype.$confirm = Modal.confirm;
Vue.prototype.$message = Message;
// Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false;

new Vue({
  router,
  render: h => h(App),
}).$mount('#app');